<%-- 
    Document   : index
    Created on : Feb 11, 2012, 1:30:29 PM
    Author     : Doodles
--%>
<%@ include file="../template/header.jsp" %>
<h1>Main Page</h1>
<form>
    <% if (session.getAttribute("account") == null) {%>
    <input type="button" value="Login" onclick="location.href='Login'" />
    <input type="button" value="Register" onclick="location.href='Register'" />
    <% } else { %>
    <input type="button" value="Profile" onclick="location.href='Profile'" />
    <input type="button" value="Log out" onclick="location.href='Logout'" />
    <p>Hello</p>
    <% }%>
</form>
<%@ include file="../template/footer.jsp" %>
